import request from '@/config/axios'

export interface test{
    pageNo: 1,
    pageSize: 10,
    id: null,
    mobile: null,
    status: null,
    nickname: null,
    avatar: null,
    name: null,
    userType: null,
    remark: null,
    censusRegister: null,
    registeredHk: null,
    referrer: null,
    age: null,
    sex: null,
    birthday: null,
    levelId: null,
    groupId: null,
    agentId: null,
    agentName: null,
    warrantId: null,
    warrantName: null,
    isHome: null,
    wealthValue: null,
    openId: null
}

// 查询用户信息列表
export const getUsersPage = async (params) => {

    return await request.get({ url: `/hutai/client/page`, params })
}
// 查询用户业务员详情
export const getSalesmanDetails = async (params) => {

    return await request.get({ url: `/hutai/client/getUserInfo?id=`+params })
}
//查询总待跟进客户
export const getAgentWMyFollowUpUser = async (params) => {

    return await request.get({ url: `/hutai/statistics/getAgentWMyFollowUpUser?userId=`+params })
}
//查当月已跟进客户
export const getMyMonthFollowUpUser = async (params) => {
    return await request.get({ url: `/hutai/statistics/getAWUpUser?userId=`+params})
}
//查当月已成交订单
export const getMonthCjNumber = async (params) => {
    return await request.get({ url: `/hutai/statistics/getMonthCjNumber?userId=`+params})
}
//查当月已成交订单
export const getMonthCjMoney = async (params) => {
    return await request.get({ url: `/hutai/statistics/getMonthCjMoney?userId=`+params})
}
//查他的推荐人
export const getHeRecommend = async (params) => {
    return await request.get({ url: `/hutai/client/getHeRecommend?userId=`+params})
}
//查我的推荐人
export const getMiRecommend = async (params) => {
    return await request.get({ url: `/hutai/client/getMiRecommend?userId=`+params})
}


//删除
export const deleteUser = async (id) => {
  return await request.post({ url: `/hutai/userdb/delete?id=`+id})
}

//禁用
export const forbiddenUser = async (id) => {
  return await request.post({ url: `/hutai/userdb/forbidden?id=`+id})
}


export const getUserTwoList = async () => {
  return await request.get({ url: `/hutai/userdb/getUserTwoList`})
}

